package practice06;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice06
 * @ClassName: Student
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/10 10:27
 * @Copyright 大牛版板所有
 */
public  class Student extends Person {
    private double scholarship;

    public Student() {
    }

    public Student(double scholarship) {
        this.scholarship = scholarship;
    }

    public double getScholarship() {
        return scholarship;
    }

    public void setScholarship(double scholarship) {
        this.scholarship = scholarship;
    }

    @Override
    public void pay(){
        this.wages = this.getScholarship();
        System.out.println("大学生的工资支出为："+this.wages);
    }
}
